package org.example.bigdata.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName Post
 */
@TableName(value ="Post")
@Data
public class Post implements Serializable {
    /**
     * 帖子id
     */
    @TableId(value = "post_id", type = IdType.AUTO)
    private Integer post_id;

    /**
     * 所属热点id
     */
    @TableField(value = "hotSpot_id")
    private Integer hotSpot_id;

    /**
     * 帖子链接
     */
    @TableField(value = "link")
    private String link;

    /**
     * 帖子标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 点赞数量
     */
    @TableField(value = "likeCount")
    private Integer likeCount;

    /**
     * 收藏数量
     */
    @TableField(value = "collectionCount")
    private Integer collectionCount;

    /**
     * 帖子评论数
     */
    @TableField(value = "commentCount")
    private Integer commentCount;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}